<?php

class Event extends CI_Controller {

    private static $layout_data = array();
    private static $home_data = array();
    
    function __construct()
    {
        parent::__construct();

        $this->load->model('node_model');
    }

    /**
     * Get gallery event
     */
    public function getListEvent()
    {
        //Set params
        $categoryID = $this->input->get('categoryID')?$this->input->get('categoryID'):28;
        $limit = $this->input->get('limit')?$this->input->get('limit'):6;
        $offset = $this->input->get('offset')?$this->input->get('offset'):0;

        //Get data
        self::$home_data['arrNode'] = $this->node_model->getListEvent($categoryID, $limit, $offset);
        
        //Assign to view
        $this->load->view('home/gallery', self::$home_data);
    }

}
